<?php	$atr=array(
					"name"=>"time",
					"onsubmit"=>"return checkTime()"
				  ); 
	echo form_open('time/insert',$atr);
	$bar=" Insert Time "; 
?> 

<table border="1" class="tablebg" cellspacing="1" align="right" border="1" width="900px">
	<tr>
		<td colspan=5 align=right class=bar><?php echo $bar;?></td>
	</tr>
	<tr>
		<td>Time_ID</td>
		<td><input type="text" name="Time_ID" /> </td>
	</tr>
	<tr>
		<td>Database_ID</td>
		<td><input type="text" name="Database_ID" /></td>   
	</tr>
	<tr>
		<td>FromDate</td>
		<td><input type="text" name="FromDate" id="Date" onclick="loadCalendar(this.id);" /> </td>
	</tr>
	<tr>
		<td>ToDate</td>
		<td><input type="text" name="ToDate"  id="Date1" onclick="loadCalendar(this.id);"/> </td>
	</tr>
	<tr>
		<td>WorkingDay</td>
		<td><input type="text" name="WorkingDay" /> </td> 
	</tr>
	<tr>
		<td>UnpaidLeaveDays</td>
		<td><input type="text" name="UnpaidLeaveDays" /> </td>   
	</tr>
	<tr>
		<td>WorkedDay</td>
		<td><input type="text" name="WorkedDay" /> </td>
	</tr>
	<tr>
		<td>OT_Weekday</td>
		<td><input type="text" name="OT_Weekday" /> </td>
	</tr>
	<tr>
		<td>OT_Weekend</td>
		<td><input type="text" name="OT_Weekend" /> </td>  
	</tr>
	<tr>
		<td>OT_Holiday</td>
		<td><input type="text" name="OT_Holiday" /> </td>
	</tr>
	<tr>
		<td>ON_Weekday</td>
		<td><input type="text" name="ON_Weekday" /> </td>
	</tr>
	<tr>
		<td>ON_Weekend</td>
		<td><input type="text" name="ON_Weekend" /> </td>  
	</tr>
	<tr>
		<td>ON_Holiday</td>
		<td><input type="text" name="ON_Holiday" /> </td>
	</tr>
	<tr>
		<td>PerformanceBonus</td>
		<td><input type="text" name="PerformanceBonus" /> </td>
	</tr>
	<tr>
		<td>P_Desciption</td>
		<td><input type="text" name="P_Desciption" /> </td>
	</tr>	
	<tr>
		<td>ComDeduction</td>
		<td><input type="text" name="ComDeduction" /> </td>
	</tr>
	<tr>
		<td>C_Desciption</td>
		<td><input type="text" name="C_Desciption" /> </td>
	</tr>
	
		<td align="center" colspan="2" id="abc"><?php if (isset($error)) echo $error;?></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" value="insert"/></td>
	</tr>
</table>	




